<html>
	<head>
		<title>Dashboards</title>
		<link rel="stylesheet" href="../css/style.css" media="screen">
		<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/dojo/1.8.3/dijit/themes/claro/claro.css" media="screen">
		<link rel="stylesheet" href="http://ajax.googleapis.com/ajax/libs/dojo/1.8.3/dojox/grid/resources/claroGrid.css" />
		<style>
			#dialog { min-width: 200px; }
		</style>
	</head>
	<body class="claro">
        <script>dojoConfig = {
            parseOnLoad: true,
            isDebug: true,
            baseUrl: "js/",
            tlmSiblingOfDojo: false,
            packages: [
                { name: "my", location: "my" }
            ]};</script>
        <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/dojo/1.8/dojo/dojo.js"></script>
		<script>
			require(["dojo/ready", "dijit/layout/BorderContainer", "dijit/layout/ContentPane", "my/createMenu", "my/TabbedDashboards", "my/Widget"], 
				function(ready, BorderContainer, ContentPane, createMenu, Dashboards, Widget){
				ready(function(){
                    console.log("Test");
                    var widget = new Widget();
                    console.log(widget.domNode);
                    //var menu = new createMenu();
                    //console.log(menu.domNode);
					var bc = new BorderContainer({style: "width: 100%; height:100%;"});
					var topPane = new ContentPane({
						region: "top",
						style: "height: 15%",
						content: ""});
                    var menu = new createMenu();
                    topPane.set("content", [menu.domNode]);
                    var bottomPane = new ContentPane({
                        region: 'bottom',
                        style: "height: 85%",
                        content: ""});
                    var dashboards = new Dashboards();
                    bottomPane.set("content", [dashboards.domNode]);
					bc.addChild(topPane);
                    bc.addChild(bottomPane);
					document.body.appendChild(bc.domNode);
					bc.startup();
				});
			});
		</script>
	</body>
</html>
